import request from '@/utils/request'

// 查询预付款列表
export function listPaymentRequest(query) {
  return request({
    url: '/finance/paymentRequest/getPaymentVoList',
    method: 'get',
    params: query
  })
}
//驳回
export function rejectPaymentRequest(paymentRequestIds,processRemark) {
return request({
  url: '/finance/paymentRequest/rejectPaymentRequest',
  method: 'post',
  params: {
    paymentRequestIds,
    processRemark
  }
})
}

//核准
export function approvedPaymentRequest(paymentRequestIds) {
  return request({
    url: '/finance/paymentRequest/approvedPaymentRequest/' +paymentRequestIds,
    method: 'post'
  })
}

//付款单
export function voucherPaymentRequest(paymentRequestIds) {
  return request({
    url: '/finance/paymentRequest/voucherPaymentRequest/' +paymentRequestIds,
    method: 'post'
  })
}



